package com.ruoyi.framework.security.context;

/**
 * 身份验证信息
 *
 * @author ruoyi
 */
public class ChooseSelectDeptIdContextHolder {
    private static final ThreadLocal<Long> contextHolder = new ThreadLocal<>();

    public static Long getContext() {
        return contextHolder.get();
    }

    public static void setContext(Long chooseDeptId) {
        contextHolder.set(chooseDeptId);
    }

    public static void clearContext() {
        contextHolder.remove();
    }
}
